package com.xingxue.service;

import com.xingxue.dao.EmpDao;
import com.xingxue.util.JdbcUtil;
import com.xingxue.util.Page;

public class EmpService {
	
	private EmpDao empDao = new EmpDao();
	
	public Page findByPage(int page, int pageSize) {
		try {
			return empDao.findByPage(page, pageSize);
		} finally {
			JdbcUtil.close();
		}
	}

	public Page findByPage(int page, int pageSize, String ename, Double minSal, Double maxSal, Integer deptno) {
		try {
			return empDao.findByPage(page, pageSize, ename, minSal, maxSal, deptno);
		} finally {
			JdbcUtil.close();
		}
	}

}
